<?php
mysql_connect("127.0.0.1","root","sd2013");
mysql_select_db("mathRomp");
$q=mysql_query("INSERT INTO `Users`(`userId`, `username`, `password`, `email`, `userType`, `totalScore`) VALUES (NULL,'".$_REQUEST['userName']."','".$_REQUEST['password']."','".$_REQUEST['email']."',0,0)");
while($e=mysql_fetch_assoc($q)){
  $output[]=$e;
}
print(json_encode($output));
mysql_close();
?>